
export const setToken = (token) => {
    return localStorage.setItem('token1', token)
}

export const getToken = () => {
    return localStorage.getItem('token1')
}

export const removeToken = () => {
    return localStorage.removeItem('token1')
}

export const setUser = (user) => {
    return localStorage.setItem('user1', JSON.stringify(user))
}

export const getUser = () => {
    return JSON.parse(localStorage.getItem('user1'))
}
export const removeUser = () => {   
    return localStorage.removeItem('user1')
}